<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::$app->name;?> 后台管理</title>
<?php $this->HeaderView(array_merge($this->context->getSubmodelheaderPlugins(), ['template']));?>
</head>
<body class="view_form" id="view_form_Auction">
<?php echo $this->render($this->context->getViewFiles('validate'), array('modelid' =>$this->context->submodel->modelid, 'fields'=>$this->context->submodel->fields));?>
 <form id="view-form-form" class="view-form-form" method="post" action="<?php echo $submitUrl;?>" enctype="multipart/form-data">

     <input type="hidden" id="modelid" name="modelid" value="<?php echo $this->context->submodel->modelid;?>">
     <input type="hidden" id="<?php echo $this->context->submodel->primarykey?>" name="Models[<?php echo $this->context->submodel->primarykey?>]" value="<?php echo $model->attributes[$this->context->submodel->primarykey];?>">
            <table class="view-form-input" border="0" cellspacing="0" cellpadding="0" width="100%">
                <thead>
                <?php

				$widgets = $this->context->formWidgets('Backend', 'form', $model->attributes);
				foreach($widgets as $field=>$widget){
				?>
                      <tr>
                        <th valign="top" class="td-title"><label for="catid"><?php if($widget['fields']['required']){?><font class="required">*</font><?php }?><?php echo $widget['fields']['name'];?>：</label></th>
                        <td class="td-input">
						<?php
						echo $widget['widgets'];
                        ?>
						</td>
                    </tr>
                    
                <?php
				}
				?>
                      <tr>
                        <th></th>
                        <td><br>
                        <button class="ui-btn ui-btn-primary" type="submit">提交</button>
                            </td>
                    </tr>
                    
                        </tbody>
                    
            </table>
<?=$this->csrfToken()?>
 
    </form>
<script>

</script>
<?php $this->FooterView();?>
</body>
</html>


